package com.lh.config;

import com.lh.util.MyLog;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * SpringBoot主启动类执行完run()方法后的自动回调执行下面类的方法
 *
 * @Author LuoHang
 * @Date 2022-05-10 19:17
 **/
@Component
public class MyApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) {
        String msg = "MyApplicationRunner.run()方法开始执行...........";
        MyLog.info(MyApplicationRunner.class,msg);
    }
}
